<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="vendor/bootstrap.css">
  <link rel="stylesheet" href="vendor/font/bootstrap-icons.css">
  <link rel="stylesheet" href="vendor/toastr.css">
  <style>
    body {
      display: flex;
      height: 100vh;
      background-color: #f1f1f1;
    }

    .left-menu,
    .innert-menu-container {
      width: 240px;
    }

    .left-menu {
      background-color: #313a46;
      transition: width .3s;
      overflow: hidden;
    }

    .left-menu.hide {
      width: 0;
    }

    .main-content {
      /* 占用剩余的右侧空间 */
      flex-grow: 1;
    }

    .logo {
      display: block;
      width: 148px;
      height: 40px;
      margin-top: 20px;
      margin-left: auto;
      margin-right: auto;
    }

    .menu-container {
      margin-top: 20px;
      padding-left: 30px;
      padding-right: 30px;
      list-style: none;
      color: #fff;
    }

    .menu-container>li {
      color: #8391a2;
    }

    .menu-container>li:hover {
      cursor: pointer;
    }

    .sub-menu {
      height: 0;
      overflow: hidden;
      transition: height .3s;
    }

    .menu-item,
    .menu-item:hover {
      color: inherit;
    }

    .menu-item {
      padding-top: 8px;
      padding-bottom: 8px;
      padding-left: 22px;
      text-decoration: none;
    }

    .menu-item.active {
      color: #fff;
    }

    .level-1-menu {
      line-height: 2.1;
    }

    .level-1-menu>.bi-chevron-right {
      transform: none;
      transition: transform .15s;
    }

    .level-1-menu.active>.bi-chevron-right {
      transform: rotate(90deg);
    }

    .main-content {
      display: flex;
      flex-direction: column;
    }

    .globalnav {
      display: flex;
      height: 70px;
      padding-left: 16px;
      padding-right: 16px;
      justify-content: space-between;
      align-items: center;
      background-color: #fff;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    }

    .page-content {
      flex-grow: 1;
    }

    .switch-left {
      font-size: 30px;
      cursor: pointer;
    }

    .avatar {
      width: 32px;
      height: 32px;
      margin-left: 16px;
      border-radius: 50%;
    }

    .nav-tools {
      display: flex;
      align-items: center;
    }

    .text-icon-space {
      margin-left: 8px;
    }

    .logout {
      display: flex;
      margin-left: 16px;
      align-items: center;
      cursor: pointer;
    }

    .logout>i {
      font-size: 22px;
    }
  </style>
</head>

<body>
  <nav class="left-menu">
    <div class="innert-menu-container">
      <img class="logo" src="http://www.itcbc.com:8888/assets/images/logo2.png" alt="logo">
      <ul class="menu-container">
        <li>
          <div class="level-1-menu d-flex justify-content-between">
            <div>
              <i class="bi bi-graph-up-arrow"></i>
              <span>控制面板</span>
            </div>
            <i class="bi bi-chevron-right"></i>
          </div>
          <div class="sub-menu">
            <a class="menu-item active  d-block" href="">图表概览</a>
          </div>
        </li>
        <li>
          <div class="level-1-menu d-flex justify-content-between">
            <div>
              <i class="bi bi-people"></i>
              <span>学员管理</span>
            </div>
            <i class="bi bi-chevron-right"></i>
          </div>
          <div class="sub-menu">
            <a class="menu-item d-block" href="./student.html" target="fm">学员信息</a>
            <a class="menu-item d-block" href="./score.html" target="fm">成绩录入</a>
          </div>
        </li>
      </ul>
    </div>
  </nav>
  <main class="main-content">
    <div class="globalnav">
      <i class="switch-left bi bi-list"></i>
      <div class="nav-tools">
        <button id="initData" type="button" class="btn btn-primary"
          style="--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;">
          点我初始化数据
        </button>

        <img class="avatar" src="./images/cat.jpg" alt="头像">
        <span class="text-icon-space">凝重</span>

        <div class="logout">
          <i class="bi bi-power"></i>
          <span class="text-icon-space">退出</span>
        </div>
      </div>
    </div>
    <iframe class="page-content" src="dashboard.html" name="fm"></iframe>
  </main>
  <script src="vendor/bootstrap.bundle.js"></script>
  <script src="vendor/axios.js"></script>
  <script src="vendor/jquery.js"></script>
  <script src="vendor/toastr.min.js"></script>
  <script src="js/common.js"></script>
  <script src="js/index.js"></script>
</body>

</html>